import Vue from 'vue'
import Router from 'vue-router'
import index from '../views/index'
import author from '../views/author'
import file from '../views/file'
import tools from '../views/tools'
import details from '../views/details'
import adminadd from '../views/adminadd'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/author',
      name: 'author',
      component: author
    },
    {
      path: '/file',
      name: 'file',
      component: file
    },
    {
      path: '/tools',
      name: 'tools',
      component: tools
    },
    {
      path: '/details',
      name: 'details',
      component: details
    },
    {
      path: '/adminadd',
      name: 'adminadd',
      component: adminadd
    },
  ]
})
